package thinkingJava.chapter19;
import static util.Print.*;
enum Search {
	HITHER, YON
}
public class UpcastEnum {

	public static void main(String[] args) {
		Search[] vals = Search.values();
		Enum e = Search.HITHER;//upcast
		for (Enum en : e.getClass().getEnumConstants()) {
			print(en);
		}
	}
}
